import { transformRecordToOption } from '@/utils/common'

export const RechargeStatus: Record<Api.Bill.Recharge['status'], string> = {
    1: '失败',
    2: '成功'
}

export const CardType: Record<Api.Bill.Recharge['cardType'], string> = {
    1: '万事达卡',
    2: '转账卡'
}

export const RechargeOptions = transformRecordToOption(RechargeStatus, true)

export const RemittanceStatus: Record<Api.Bill.Remittance['status'], string> = {
    1: '待处理',
    2: '已汇款',
    3: '失败',
    4: '已拒绝'
}

export const RemittanceOptions = transformRecordToOption(RemittanceStatus, true)

export const WalletStatus: Record<Api.Bill.WalletStatus, string> = {
    1: '处理中',
    2: '成功',
    3: '失败',
    4: '已拒绝'
}

export const WalletStatusOptions = transformRecordToOption(WalletStatus, true)

export const WalletTradeType: Record<Api.Bill.WalletTradeType, string> = {
    1: '充值',
    2: '提现',
    3: '转账',
    4: '兑换',
    5: '开卡',
    6: '转入卡',
    9: '转出卡',
    11: '兑换返佣',
    12: '开卡返佣'
}

export const WalletTradeTypeOptions = transformRecordToOption(WalletTradeType, true)

export const MasterCardStatus: Record<Api.Bill.MasterCardStatus, string> = {
    1: '待处理',
    2: '成功',
    3: '已拒绝',
    4: '已取消'
}

export const MasterCardStatusOptions = transformRecordToOption(MasterCardStatus, true)

export const MasterCardType: Record<Api.Bill.MasterCardType, string> = {
    1: '充值',
    2: '收费',
    3: '退款',
    4: '偿还',
    5: '现金返回',
    6: '利息',
    7: '费用',
    9: '其他'
}

export const MasterCardTypeOptions = transformRecordToOption(MasterCardType, true)
